package test.day214;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Login {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        LoginStatus loginStatus=new LoginStatus();
        TimeThread th=new TimeThread(loginStatus);
        th.start();//
        while (true){
            String n=s.next();
            String p=s.next();
            if(n.equals("admin")&&p.equals("1234")){
                loginStatus.setOk(true);
                break;
            }
            System.out.println("验证失败，重来！");
        }
        while (true){
            System.out.println("英雄联盟对局中");
            try {
                Thread.sleep(1600);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
